package com.lilicould.service;

import com.lilicould.entity.RepairRecord;
import com.lilicould.entity.RepairRequest;

import java.util.ArrayList;

public interface RepairService {
    // 插入报修申请
    boolean insertRepairRequest(RepairRequest repairRequest);

    // 插入报修记录
    boolean insertRepairRecord(RepairRecord repairRecord);

    // 查询所有报修申请
    ArrayList<RepairRequest> selectAllRepairRequest();

    // 查询所有报修记录
    ArrayList<RepairRecord> selectAllRepairRecord();

    // 通过请求工单ID添加维修工
    boolean updateRepairEmployeeId(String requestId, String employeeId);

    // 完成修理请求（先删除，然后创建一条维修记录）
    boolean finishRepairRequest(String requestId,String content);

}
